import https from '@/plugins/luch-request_0.0.7/request'

// 商家-获取用户认证信息
export const getAuthInfo = data => https.get('/apihkds/api/user/role/real/edit', data)

// 商家-编辑用户认证信息
export const postEditAuth = data => https.post('/apihkds/api/user/role/real/edit', data)

// 商家-新增用户认证信息
export const postAddAuth = data => https.post('/apihkds/api/user/role/real/add', data)

// 平台-获取用户认证信息详情
export const getAdminAuthInfo = data => https.get('/apihkds/api/user/role/real/admin/edit', data)

// 平台-审核用户认证信息
export const postAdminAuthInfo = data => https.post('/apihkds/api/user/role/real/admin/edit', data)

// 平台-获取用户列表
export const getList = data => get('/apihkds/api/user/role/real/admin/list', data)

// 增加店铺
export const addStore = data => https.post('/apihkds/api/user/createChildrenAccount', data)

// 切换店铺
export const switchStore = data => https.post('/apihkds/api/user/loginToAccount', data)
